FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"

SRC_URI:append:d1h = "\
    file://asound-5-4.conf \
    file://asound-6.conf \
    "

do_install:append:d1h() {
    install -d ${D}${sysconfdir}

    #install -m 0644 ${WORKDIR}/asound-5-4.conf ${D}${sysconfdir}/asound.conf
    #install -m 0644 ${WORKDIR}/asound-6.conf ${D}${sysconfdir}/asound.conf

    if [ "${@bb.utils.contains('PREFERRED_PROVIDER_virtual/kernel', 'linux-aw-tina', 'true', 'false', d)}" = "true" ]; then
        install -m 0644 ${WORKDIR}/asound-5-4.conf ${D}${sysconfdir}/asound.conf
    else
        install -m 0644 ${WORKDIR}/asound-6 ${D}${sysconfdir}/asound.conf
    fi
}

FILES:${PN} += "\
    ${sysconfdir} \
"
